package com.cheboohui.iqs.spider.pingan.entity;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.cheboohui.iqs.menu.ErrorNews;

/**
 * 内部实体
 * 
 * @author xielonghai
 *
 */
public class PAResult {

	private boolean state;

	private ErrorNews error;

	private String errorValue;

	private JSONObject obj;

	private JSONArray carList;

	public PAResult(ErrorNews error, String errorValue) {
		this.state = false;
		this.error = error;
		this.errorValue = errorValue;
	}

	public JSONArray getCarList() {
		return carList;
	}

	public void setCarList(JSONArray carList) {
		this.carList = carList;
	}

	public PAResult(JSONObject obj) {
		this.state = true;
		this.obj = obj;
	}

	public boolean isState() {
		return state;
	}

	public void setState(boolean state) {
		this.state = state;
	}

	public ErrorNews getError() {
		return error;
	}

	public void setError(ErrorNews error) {
		this.error = error;
	}

	public JSONObject getObj() {
		return obj;
	}

	public void setObj(JSONObject obj) {
		this.obj = obj;
	}

	public String getErrorValue() {
		return errorValue;
	}

	public void setErrorValue(String errorValue) {
		this.errorValue = errorValue;
	}

}
